package com.aistar.service.impl;

import com.aistar.mapper.ClubActivityMapper;
import com.aistar.pojo.ClubActivity;
import com.aistar.service.ClubActivityService;
import net.bytebuddy.asm.Advice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class ClubActivityServiceImpl implements ClubActivityService {
    @Autowired
    private ClubActivityMapper clubActivityMapper;
    @Override
    public List<ClubActivity> getfive() {
       List<ClubActivity> clubList = new ArrayList<>();
       for(int i = 1;i<=5;i++)
           clubList.add(clubActivityMapper.selectByPrimaryKey(i));
        return clubList;
    }
}
